﻿#region Using Directives

using System;
using System.IO;

#endregion Using Directives


namespace Kongo.Test
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Template t = new Template(File.ReadAllText("Test.txt"));
            Context c = new Context();
            c.InvalidVariableOutput = "ERROR";
            c["test"] = true;
            c["dt"] = DateTime.Now;

            Console.Write(t.Render(c));
            Console.ReadLine();
        }


        private class TestObj
        {
            public int Field = 1;

            public int Property
            {
                get { return 1; }
            }

            public int Method()
            {
                return 1;
            }

            public int this[string key]
            {
                get { return 1; }
            }
        }
    }
}
